SVM: clean up svm_vmcb_isvalid()
authorJan Beulich <jbeulich@suse.com>
Mon, 12 Jun 2017 07:32:14 +0000 (09:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Jun 2017 07:32:14 +0000 (09:32 +0200)
commit136d46e548db1c346c3e14b8d6d5b771fc30ca41
tree7eff5a7b12db1565002c7b61965d5b5d47a2d665
parent8fd2fe0bbfcccae53c813b08911b48fd89ebc104
SVM: clean up svm_vmcb_isvalid()

- correct CR3, CR4, and EFER checks
- delete bogus nested paging check
- add vcpu parameter (to include in log messages) and constify vmcb one
- use bool/true/false
- use accessors (and local variables to improve code readability)
- adjust formatting

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/svm/nestedsvm.c
xen/arch/x86/hvm/svm/svmdebug.c
xen/include/asm-x86/hvm/svm/svmdebug.h